﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Expo.Training.DataAccess.Vip
{
    public class VipEntity
    {
        public Guid VipID { get; set; }
        public Guid MemberID { get; set; }
        public int Category { get; set; }
        public DateTime AddTime { get; set; }
        public DateTime? UpgradeTime { get; set; }

        public string CategoryName
        {
            get{
                string _categoryName = "";

                switch (Category)
                {
                    case 0:
                        _categoryName = "普通会员";
                        break;
                    case 1:
                        _categoryName = "二级VIP";
                        break;
                    case 2:
                        _categoryName = "一级VIP";
                        break;
                    default:
                        _categoryName = "非会员";
                        break;
                    
                }

                return _categoryName;
            }
            
        }
    }
}
